package com.example.shop.merchant.vo;

import com.example.shop.merchant.dto.MerchantBriefInfo;
import com.example.shop.user.dto.UserBriefInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageView {
    /**
     * 商家的头像、商家名信息
     */
    private MerchantBriefInfo merchantInfo;
    /**
     * 用户的头像、用户名信息
     */
    private UserBriefInfo userInfo;
    /**
     * 消息的内容
     */
    private String content;

    @Override
    public String toString() {
        return "MessageView{" +
                "merchantInfo=" + merchantInfo +
                ", userInfo=" + userInfo +
                ", content='" + content + '\'' +
                '}';
    }
}
